<?php echo $this->fetch('header.html'); ?>    
<?php echo $this->fetch('title.html'); ?>            


<?php $_from = $this->_var['scategorys']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'scategory');if (count($_from)):
    foreach ($_from AS $this->_var['scategory']):
?>
<div class="radius">
    <h3><a href='<?php echo url('app=search&act=store&cate_id=' . $this->_var['scategory']['id']. ''); ?>'><?php echo htmlspecialchars($this->_var['scategory']['value']); ?></a></h3>
    <?php $_from = $this->_var['scategory']['children']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'child');if (count($_from)):
    foreach ($_from AS $this->_var['child']):
?>
    <a href='<?php echo url('app=search&act=store&cate_id=' . $this->_var['child']['id']. ''); ?>' style="display: inline-table;width: 30%;padding: 10px 0;text-align: center;color: #546280;font-size:12px;"><?php echo htmlspecialchars($this->_var['child']['value']); ?></a> 
    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</div>
<?php endforeach; else: ?>
<div class="null">
    <p>没有符合条件的记录</p>
</div>
<?php endif; unset($_from); ?><?php $this->pop_vars();; ?>

<?php echo $this->fetch('footer.html'); ?>